package org.papervision3d.events
{
	import flash.events.Event;
	import logout.pv.transition.TransformType;

	public class InterpolationEvent extends TransformEvent 
	{
		/**
		 * The Interpolation interpolation Event. It's the event broadcasted every time the interpolation is updated
		 */
		public static var onProgressEVENT:String =  "onProgress";
		/**
		 * The Interpolation start Event. Broadcasted when the Interpolation is started
		 */
		public static var onPauseEVENT:String =  "onPause";
		/**
		 *  The Interpolation resume Event. Broadcasted when the Interpolation is resumed
		 */
		public static var onResumeEVENT:String =  "onResume";
		/**
		 * Constructor
		 */
		public function InterpolationEvent( e:String, type:TransformType, percent:Number ) 
		{
			super( e, type );
			_nPercent = percent;
		}
		
		/**
		 * Returns the percentage of the Interpolation.
		 * @return Number The percentage of the Interpolation, a number between [0;1].
		 */
		public function getPercent():Number
		{
			return _nPercent;
		}
		
		private var _nPercent:Number;
	
		public function setPercent(pPercent : Number) : void 
		{
			_nPercent = pPercent;
		}
	
	}
}